package memorphic.slide.plugin.generators;

 public class StatesTemplate extends SlideBaseTemplate
 {

 	
  protected static String nl;
  public static synchronized StatesTemplate create(String lineSeparator)
  {
    nl = lineSeparator;
    StatesTemplate result = new StatesTemplate();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "package ";
  protected final String TEXT_2 = NL + "{" + NL + "\tpublic class ";
  protected final String TEXT_3 = NL + "\t{" + NL + "\t\t// Add state uri's here" + NL + "\t\t// public static const STATE_NAME:String = \"/";
  protected final String TEXT_4 = "/home\"; " + NL + "\t}" + NL + "}";

/* (non-javadoc)
    * @see IGenerator#generate(Object)
    */
public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    stringBuffer.append(TEXT_1);
    stringBuffer.append( featurePackage );
    stringBuffer.append(TEXT_2);
    stringBuffer.append( stateClassName );
    stringBuffer.append(TEXT_3);
    stringBuffer.append( featurePackage );
    stringBuffer.append(TEXT_4);
    return stringBuffer.toString();
  }
}